 class Test6_1 {
    public static void main(String[]args) {
        System.out.println("这是一个异常处理的例子\n");
        try{
            int i = 10;
            int j = 0;
            int z = i/j;
        }
        catch(ArithmeticException e){
            System.out.println("异常是:" + e.getMessage());
        }
        finally{
            System.out.println("finally语句被执行");
        }
    }
    }

